<template>
  <div class="app-container">
    <el-tabs v-model="activeTab" @tab-click="handleClick">
      <el-tab-pane label="数据概况" name="statistics">
        <FinanceStatistics v-if="activeTab === 'statistics'" />
      </el-tab-pane>
      <el-tab-pane label="平台积分核算" name="accounting">
        <Statements v-if="activeTab === 'accounting'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Statements from './statements'
import FinanceStatistics from './finance-statistics/data_overview'
export default {
  name: 'DataOverview',
  components: {
    Statements,
    FinanceStatistics
  },
  data() {
    return {
      activeTab: 'statistics'
    }
  },
  methods: {
    handleClick({ name }) {
      this.activeTab = name
    }
  }
}
</script>

<style lang="scss" scoped>
/deep/.el-tabs__header {
  padding: 10px;
  background-color: #ffffff;
}
</style>
